const express = require('express'),
    router = express.Router();

router.get('/getMsg', (req, res, next) => {
    res.cookie('name', '老铁', {
        expires: new Date(),
        httpOnly: true
    });
    res.json({
        code: 200,
        msg: '访问成功呢',
        serverTime: Date.now()
    });
});

module.exports = router;